package javase.collections;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class RotateTest {

	public static void main(String[] args) {
		List<Integer> list = new ArrayList<Integer>();
		for (int i = 0; i < 10; i++) {
			list.add(10+i);
			list.add(10);
		}
		System.out.println(list);
//		Collections.rotate(list, 3);
//		Collections.swap(list, 0, 6);
//		int index = Collections.binarySearch(list, 12);
//		System.out.println(index);
//		System.out.println(list.get(index));
//		int frequency = Collections.frequency(list, 10);
//		System.out.println(frequency);
		int min = Collections.min(list);
		int max = Collections.max(list);
		System.out.println(min);
		System.out.println(max);
	}
	
}
